package com.wlc.pac;

public class Test extends Thread {
	public static void main(String[] args) {
		Storage s=new StorageForReentrantLock();
		Producer p1=new Producer(10,s);
		Producer p2=new Producer(20,s);
		Producer p3=new Producer(30,s);
		Producer p4=new Producer(40,s);
		Producer p5=new Producer(50,s);
		Producer p6=new Producer(60,s);
		
		p1.start();
		p2.start();
		p3.start();
		p4.start();
		p5.start();
		p6.start();
		
	
		
		Customer c3=new Customer(5,s);
		Customer c4=new Customer(10,s);
		Customer c5=new Customer(20,s);
		
		
		c3.start();
		c4.start();
		c5.start();
	}
}
